package NewTest;

public class TestDemo{
    private String name;
    private int age;
    private double score;
    private static String classRoom;
    //实例代码块
    {
        this.name = "bit";
        this.age = 12;
        System.out.println("I am instance init()!");
    }
    // 静态代码块
    static {
        classRoom = "bit306";
        System.out.println("I am static init()!");
    }
    public TestDemo(){
        System.out.println("I am Student init()!");
    }
    public static void main(String[] args) {
        TestDemo s1 = new TestDemo();
        TestDemo s2 = new TestDemo();
    }
}